<template>
	<div class="left-menu">
		<div class="logo-wrapper">侧边栏</div>
		<el-menu :router="true"  background-color="#545c64" text-color="#fff" active-text-color="#ffd04b">
		      <el-submenu index="1">
		        <template slot="title"><i class="el-icon-user"></i>用户管理</template>
		        <el-menu-item-group>
		          <el-menu-item index="/user/register">用户注册
					  <!-- <router-link to="/product/list">商品列表</router-link> -->
				  </el-menu-item>
				  <el-menu-item index="/user/login">用户登录
				  </el-menu-item>
		        </el-menu-item-group>
		      </el-submenu>
		      <el-submenu index="2">
		        <template slot="title"><i class="el-icon-menu"></i>导航二</template>
		        <el-menu-item-group>
		          <template slot="title">分组一</template>
		          <el-menu-item index="2-1">选项1</el-menu-item>
		          <el-menu-item index="2-2">选项2</el-menu-item>
		        </el-menu-item-group>
		        <el-menu-item-group title="分组2">
		          <el-menu-item index="2-3">选项3</el-menu-item>
		        </el-menu-item-group>
		        <el-submenu index="2-4">
		          <template slot="title">选项4</template>
		          <el-menu-item index="2-4-1">选项4-1</el-menu-item>
		        </el-submenu>
		      </el-submenu>
		      <el-submenu index="3">
		        <template slot="title"><i class="el-icon-setting"></i>导航三</template>
		        <el-menu-item-group>
		          <template slot="title">分组一</template>
		          <el-menu-item index="3-1">选项1</el-menu-item>
		          <el-menu-item index="3-2">选项2</el-menu-item>
		        </el-menu-item-group>
		        <el-menu-item-group title="分组2">
		          <el-menu-item index="3-3">选项3</el-menu-item>
		        </el-menu-item-group>
		        <el-submenu index="3-4">
		          <template slot="title">选项4</template>
		          <el-menu-item index="3-4-1">选项4-1</el-menu-item>
		        </el-submenu>
		      </el-submenu>
		    </el-menu>
	</div>
</template>

<script>
	export default {
		name:'LeftMenu'
	}
</script>

<style lang="stylus" scoped>
	.left-menu
		.logo-wrapper
			height 50px
			background-color lightgrey
			text-align center
			line-height 25px
</style>
